package com.jxw.cidian;
import com.jxw.cidian.DicActiveCallback;
interface IJwarService {
    boolean openXWCD(String path);
    String searchWord(String word);
    byte[] getPEngVoice(int peng);
    byte[] getPUsaVoice(int pusa);
    byte[] getPindVoice(int pind);
    byte[] getExmpVoice(int exmp);
    byte[] getGifImg(int gif);
    void closeXWCDFile();

	boolean openHYZDFile(String path);
    String searchHYZD(String keyword);
    byte[] getHZVoice(int voice);
    byte[] getBhtpImg(int bhtp);
    void closeHYZDFile();

    boolean openHYCDFile(String path);
    String searchHYCD(String keyword);
    void closeHYCDFile();

	boolean openPYFile(String path);
	String searchPinYin(String pinyin);
	byte[] getPYPDVoice(int pdno);
	byte[] getPYZDVoice(int zhdno);
	void closePYFile();

	boolean openHYDCDFile(String path);
    String searchHYDCD(String keyword);
    void closeHYDCDFile();

	boolean openCYCDFile(String path);
    String searchChengYu(String chengyu);
    byte[] getCYVoice(int sid);
    void closeCYCDFile();

    boolean openGHYZDFile(String path);
    String searchGHY(String ghyzd);
    byte[] getGHYVoice(int sid);
    byte[] getGHYIMG(int pid);
    void closeGHYZDFile();

    boolean openGSWCDFile(String path);
    String searchGSW(String gsw);
    byte[] getGSWYWVoice(int sid);
    byte[] getGSWZZVoice(int sid);
    byte[] getGSWCDVoice(int sid);
    void closeGSWCDFile();

    boolean openKBFile(String path);
    void closeKBFile();
    int getKBPageOdd();
    int getKBPageTotal();
    byte[] getKBPageContent(int iPage);
    byte[] getKBPageJJContent(int iPage);
    byte[] getKBVoice(int soundId);

    boolean openYTCD(String path);
    String searchYTWord(String word);
    byte[] getYTExmpVoice(int exmp);
    byte[] getYTGifImg(int gif);
    void closeYTCDFile();

    String getKBUnits(boolean isWordUnit);
    String getUnitContent(String pList,boolean isWordUnit);

    String matchWord(String word,int maxCount);
    String inverseWord(String hanzi);
    String JxwBookInfoToJsonStr(String book_path);

    void ActiveDic();
    void ActiveJwar();
    void registerActiveCallback(DicActiveCallback listener);
    void unregisterCallback(DicActiveCallback listener);
}